/**
 * Created by 李海强1 on 2016/10/13.
 */
Ext.define('UDZ.view.personal.Login', {  //定义类名与Main.js相同
    extend: 'Ext.Panel',
    xtype: 'login',
    requires: [
        // 'Ext.TitleBar'
    ],
    config: {
       xtype:'panel',
       fullscreen:true,
       cls:'login',
       items:[
           {
               xtype:'panel',
               // style:'background-color:white',
               layout:{
                   type:'vbox'
               },
               items: [
                   {
                       xtype:'panel',
                       height:'10%',
                       // style:'background-color:#ff477c',
                       cls:'login_regist_header',
                       html:'登录',
                       items:[
                           {
                               // flex:1,
                               xtype:'image',
                               cls:'login_regist_back',
                               src:'resources/images/back.png',
                               id:'login_go_back'
                           }
                       ]
                   },
                   {
                       height:'50%',
                       xtype:'panel',
                       cls:'login_regist_form_panel',
                       items:[
                           {
                               xtype:'formpanel',
                               scrollable:false,
                               height:200,
                               defaults:{
                                   labelwidth:'15%'
                               },
                               items:[
                                   {
                                       xtype:'textfield',
                                       name:'userName',
                                       placeHolder:'请输入登录帐号',
                                       required:true,
                                       clearIcon:true,
                                       cls:'login_regist_userId'
                                   },
                                   {
                                       xtype:'passwordfield',
                                       name:'userPassword',
                                       placeHolder:'请输入登录密码',
                                       required:true,
                                       clearIcon:true,
                                       cls:'login_regist_userPassword'
                                   }
                               ]
                           },
                           {
                               xtype:'button',
                               text:'登录',
                               cls:'login_regist_btn',
                           },
                           {
                               xtype:'panel',
                               style:'margin-top:20px',
                               items:[
                                   {
                                       xtype:'panel',
                                       html:'注册',
                                       style:'float:left',
                                       cls:'go_login_register',
                                       id:'go_register'
                                   },
                                   {
                                       xtype:'panel',
                                       html:'找回密码',
                                       style:'float:right',
                                       id:'find_password'
                                   }
                               ]
                           }
                       ]
                   }
               ]
           }
        ]
    }
});
